package com.ct.gd.passport.view.discount;

import java.util.List;

import android.content.Context;
import android.view.View;

import com.ct.gd.passport.domain.DiscountInfo;
import com.up91.common.android.content.SimpleLoader;

public class DiscountLoader extends SimpleLoader<List<DiscountInfo>> {
	private int	mCatalogId;

	public DiscountLoader(Context context, View view) {
		super(context, view);
	}

	public void setCatalogId(int catalogId) {
		this.mCatalogId = catalogId;
	}

	public int getCatalogId() {
		return mCatalogId;
	}

	@Override
	protected List<DiscountInfo> loadData() throws Exception {
		List<DiscountInfo> catalogs = DiscountInfo.load(mCatalogId);
		return catalogs;
	}
}
